package com.example.module.api;

import java.io.File;
import java.util.HashMap;

public class APIRequest {
	private String url;
	private HttpMethod method;
	private HashMap<String, String> params;
	private HashMap<String, File> files;
	
	public APIRequest(String url, HttpMethod method) {
		this.url = url;
		this.method = method;
		this.params = new HashMap<String, String>();
	}
	
	public APIRequest(String url, HttpMethod method, HashMap<String, String> params) {
		this.url = url;
		this.method = method;
		this.params = params;
	}
	
	public APIRequest(String url, HttpMethod method, HashMap<String, String> params, HashMap<String, File> files) {
		this.url = url;
		this.method = method;
		this.params = params;
		this.files = files;
	}

	public String getURL() {
		return url;
	}

	public void setURL(String url) {
		this.url = url;
	}

	public HttpMethod getMethod() {
		return method;
	}

	public void setMethod(HttpMethod method) {
		this.method = method;
	}

	public HashMap<String, String> getParams() {
		return params;
	}

	public void setParams(HashMap<String, String> params) {
		this.params = params;
	}

	public HashMap<String, File> getFiles() {
		return files;
	}

	public void setFiles(HashMap<String, File> files) {
		this.files = files;
	}
}
